package com.example.zhihu.mapper;

import com.example.zhihu.pojo.vo.AnswerVO;
import com.example.zhihu.utils.PagedResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AnswerCustomMapper {
    public List<AnswerVO> answerList(@Param("userId") String userId, @Param("questionId") String questionId, @Param("questionName") String questionName);

    public void addAnswerLikeCount(String answerId);

    public void reduceAnswerLikeCount(String answerId);

    public AnswerVO queryAnswer(String answerId);

    public List<AnswerVO> queryUserLike(String userId);

    public List<AnswerVO> queryUserCollect(String userId);

    public List<AnswerVO> queryUserFollow(String userId);


    public List<AnswerVO> hotAnswerList();
}

